package design_pattern.chain.simpleChain;

public class Client {
    public static void main(String[] args) {
	Request req = new Request();
	req.setEmail("lewis.liu@quest.com");
	req.setQQnumber("408674000");
	req.setPassword("123456");
	req.setConfirmPassword("123456");
	
	Intercepter[] chain = {new PasswordIntercepter(), new QQnumberIntercepter(), new EmailIntercepter()};
	for(Intercepter i : chain){
	    i.doIntercept(req);
	}

    }
}
